package com.rabbit.producer.constant;

/**
 * 消息状态的枚举类
 */
public enum BrokerMessageStatus {

    /*初始*/
    SENDING("0"),
    /*成功*/
    SEND_OK("1"),
    /*失败*/
    SEND_FALL("2"),
    /*失败可重新发送的*/
    SEND_FALL_A_MOMENT("3");

    private String code;

    private BrokerMessageStatus(String code){
        this.code = code;
    }


    public String getCode(){
        return this.code;
    }
}
